I think, this macro could be a good additon to default jEdit.
The "SystemInformation Macro will display:
jEdit Version
Java Version
OS Name & Version
Every Plugin Name & Version
Information can be copied to the clipboard.
StringBuilder result= new StringBuilder(1024);
result.append("jEdit: ");
result.append(jEdit.getBuild());
result.append("\n");
result.append("Java: ");
result.append(System.getProperty("java.vendor"));
result.append(" ");
result.append(System.getProperty("java.version"));
result.append("\n");
result.append("OS: ");
result.append(System.getProperty("os.name"));
result.append(" ");
result.append(System.getProperty("os.version"));
result.append(" ("+System.getProperty("os.arch"));
result.append(")\n");
EditPlugin[] pis= jEdit.getPlugins();
for (i=0; i<pis.length; ++i) {
String clazz= pis[i].getClassName();
result.append("\n");
result.append(jEdit.getProperty("plugin."+clazz+".name"));
result.append(": ");
result.append(jEdit.getProperty("plugin."+clazz+".version"));
}
int answer= Macros.confirm(view, "jEdit Version Information\n\n" + result.toString()+"\n\nCopy
to clipboard?", JOptionPane.YES_NO_OPTION);
if (answer == JOptionPane.YES_OPTION) {
Registers.setRegister('$', result.toString());
}
| Submitted | ngc - 2017-11-01 12:10:11.407000 | Assigned | |
|---|---|---|---|
| Priority | 5 | Labels | Macro |
| Status | open | Group | none |
| Resolution | None |
| 2017-11-03 00:46:31.215000 tsourick |
Nice.
|
|---|---|
| 2017-11-03 07:58:46.795000 ngc |
Personally I cannot (yet) as my experience with Java isn't the best.
|
| 2017-11-03 13:32:01.298000 ngc |
Okay... Using jEdit's help as a guideline I came up with this:
|